package com.efruit.productInfoMag;

import java.util.List;


/**
 * ��ϵͳ���Ż�
 * @author Administrator
 *
 */
public class ProductInfoMagFacade {
	
	private ProductInfoMagProxy fruitInfoMagProxy = null;
	
	public ProductInfoMagFacade(){
		System.out.println("new ProductInfoMagFacade");
		fruitInfoMagProxy = new ProductInfoMagProxy();
	}
	public IProductInfo add(String productName, String url, float price,
			int count) {
		return fruitInfoMagProxy.add(productName, url, price, count);
	}

	public boolean remove(int id) {
		return fruitInfoMagProxy.remove(id);
	}

	public IProductInfo update(int id, String productName, String url,
			float price, int count) {
		return fruitInfoMagProxy.update(id, productName, url, price, count);
	}
	
	public List<IProductInfo> getAllProductInfo(){
		return fruitInfoMagProxy.getAllProductInfo();
	}
	public IProductInfo getProductInfo(int id) {
		return fruitInfoMagProxy.getProductInfo(id);
	}
}
